package com.hutao.manage.mapper;

import com.hutao.manage.pojo.StddiseaseClinic;
import com.hutao.manage.pojo.StddiseaseClinicExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StddiseaseClinicMapper {
    /**
     *
     * @代码生成于 2020-06-10
     */
    int countByExample(StddiseaseClinicExample example);

    /**
     *
     * @代码生成于 2020-06-10
     */
    int deleteByExample(StddiseaseClinicExample example);

    /**
     *
     * @代码生成于 2020-06-10
     */
    int insert(StddiseaseClinic record);

    /**
     *
     * @代码生成于 2020-06-10
     */
    int insertSelective(StddiseaseClinic record);

    /**
     *
     * @代码生成于 2020-06-10
     */
    List<StddiseaseClinic> selectByExample(StddiseaseClinicExample example);

    /**
     *
     * @代码生成于 2020-06-10
     */
    int updateByExampleSelective(@Param("record") StddiseaseClinic record, @Param("example") StddiseaseClinicExample example);

    /**
     *
     * @代码生成于 2020-06-10
     */
    int updateByExample(@Param("record") StddiseaseClinic record, @Param("example") StddiseaseClinicExample example);
    
    
   List<StddiseaseClinic> getStddiseaseClinicByName(@Param("name")String name);

   List<Long> getIdByClinicCode(@Param("clinicCode")String clinicCode);
   
   int updateHisIdById(@Param("hisId")String hisId,@Param("id")Long id);
   
   int insertStddiseaseClinicHis(StddiseaseClinic stddiseaseClinic);
    
}